﻿using System;
using System.Security.Cryptography;
using System.Text;

namespace StreamToMe.Flow
{
    public struct Resource
    {
        public Resource(String Uri)
        {
            m_Uri = Uri;
            m_ResourceID = new Guid(MD5.Create().ComputeHash(Encoding.Default.GetBytes(m_Uri)));
        }
        private readonly Guid m_ResourceID;
        private readonly String m_Uri;
        public Guid ResourceID { get { return m_ResourceID; } }
    }
}
